﻿using System.Collections.Generic;

namespace Borg.Framework
{
    public class ShutdownCommand : ICommand
    {
        public IEnumerable<string> GetArguments(string[] command, int pos)
        {
            return null;
        }

        private static string Shutdown(string[] command)
        {
            Runtime.Shutdown();
            return string.Empty;
        }

        public CommandHandler Handler
        {
            get { return Shutdown; }
        }

        public string Help
        {
            get { return "Help for command \"shutdown\""; }
        }

        public string Name
        {
            get { return "shutdown"; }
        }
    }
}

